package com.ruoyi.durian.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.durian.domain.LlCardPackage;
import com.ruoyi.durian.service.LlCardPackageService;
import com.ruoyi.durian.mapper.LlCardPackageMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author lenovo
* @description 针对表【ll_card_package(个人中心-用户购买的优惠券表)】的数据库操作Service实现
* @createDate 2024-07-26 16:17:15
*/
@Service
public class LlCardPackageServiceImpl extends ServiceImpl<LlCardPackageMapper, LlCardPackage>
    implements LlCardPackageService{

    @Resource
    private LlCardPackageMapper llCardPackageMapper;

    /**
     * 失效券列表
     *
     * @param status
     * @return
     */
    @Override
    public List<LlCardPackage> selectList(Integer status) {
        LambdaQueryWrapper<LlCardPackage> qw = new LambdaQueryWrapper<>();
        qw.eq(LlCardPackage::getStatus, status);
        return list(qw);
    }
}




